package com.jy.api.payReq;

import com.jy.api.domain.Order;
import com.jy.api.domain.StorePay;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class HuiFuRefundPayReq {
    private String termOrdId;

    private String memberId;

    private String transDate;

    private String apiVersion="2.0.0.1";

    private String ordAmt;


    public HuiFuRefundPayReq(Order order, StorePay storePay) {
        this.termOrdId=order.getId();
        this.memberId = storePay.getMchId();
        this.ordAmt =  String.valueOf((int) Math.rint(order.getAmount() * 100));

    }


}
